package com.ybwh.springboot2.common.enums;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import static org.springframework.web.bind.annotation.RequestMethod.GET;

@Api(tags="枚举接口")
@RestController
@RequestMapping("/enum")
public class EnumController {



    @ApiOperation(value = "枚举下拉框",notes = "")
    @RequestMapping(value = "/emumList", method = GET)
    public List<CodeTextEnumView> versionInformation(@RequestParam("enumId") String enumId) {

        return EnumHub.getCodeTextEnumViewList(enumId);


    }





}
